<h1>Listing invoice_items</h1>

<table>
  <tr>
    <th>Product</th>
    <th>Size</th>
    <th>Size number</th>
    <th>Quantity</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @invoice_items.each do |invoice_item| %>
  <tr>
    <td><%= invoice_item.product_id %></td>
    <td><%= invoice_item.size %></td>
    <td><%= invoice_item.size_number %></td>
    <td><%= invoice_item.quantity %></td>
    <td><%= link_to 'Show', invoice_item %></td>
    <td><%= link_to 'Edit', edit_invoice_item_path(invoice_item) %></td>
    <td><%= link_to 'Destroy', invoice_item, method: :delete, data: { confirm: 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Invoice item', new_invoice_item_path %>
